<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  
  <script type="text/javascript">
    function getClickPosition(){
	  var strClickPosMessage = "\n当前鼠标单击的位置坐标：\n";
	                                                //将在警告框中按格式输出的鼠标点击位置的字符串
	  strClickPosMessage += "横坐标x：" + event.clientX + "\n";
	  strClickPosMessage += "纵坐标y：" + event.clientY + "\n";
	  alert(strClickPosMessage);
	}//getClickPosition()
  </script>
</head>
<body onclick="javascript:getClickPosition();">
  
</body>
</html>
